package com.whzykj.common;

public enum ReturnB2BEnum {
	RETURN_SUCCESS("S0000","处理成功"),
	LOGIN_SUCCESS("S0001","处理成功"),
	INFO_SUCCESS("S0002","信息查询成功"),
	INFO_UPDATE_SUCCESS("S0003","更新成功"),
	ADDRESS_DEFAULT_SUCCESS("S0004","默认收货地址查询成功"),
	ADDRESS_LIST_SUCCESS("S0005","收货地址列表查询成功"),
	STORE_LIST_SUCCESS("S0006","门店列表查询成功"),
	ADD_ADDRESS_SUCCESS("S0007","添加收货地址成功"),
	DEL_ADDRESS_SUCCESS("S0008","删除收货地址成功"),
	UPDATE_ADDRESS_SUCCESS("S0009","修改收货地址成功"),
	UPDATE_PASSWORD_SUCCESS("S0010","修改密码成功"),
	RELIEVE_THIRD_LOGIN_SUCCESS("S0011","解绑成功"),
	ADD_THIRD_LOGIN_SUCCESS("S0012","绑定成功"),
	ADD_ORDER_SUCCESS("S0013","订单入库成功"),
	ADD_BANK_SUCCESS("S0014","银行卡绑定成功"),
	QUERY_BANK_SUCCESS("S0015","查询银行卡绑定信息成功"),
	UPDATE_BANK_SUCCESS("S0016","银行卡信息修改成功"),
	QUERY_ORDER_LIST_SUCCESS("S0017","订单列表查询成功"),
	CASH_SUCCESS("S0018","提现申请成功！"),
	ORDER_INFO_SUCCESS("S0019","订单信息查询成功"),
	LOGIN_OUT_SUCCESS("S0020","登出成功"),
	RESET_PASSWORD_SUCCESS("S0021","重置密码成功"),
	
	RETURN_DATA_FAIL("C0001","无有效数据"),
	RETURN_FAIL("C0000","接口调用异常"),
	NAMESPACE_ERROR("E0002","namespace送入错误"),
	TYPE_ERROR("E0003","type送入错误"),
	VERSION_ERROR("E0004","版本号送入错误"),
	KER_ERROR("E0005","密钥送入错误"),
	LOGIN_FAIL("E0006","登录失败"),
	INFO_FAIL("E0007","个人信息查询失败"),
	INFO_UPDATE_FAIL("E0008","更新用户不存在"),
	ADDRESS_DEFAULT_FAIL("E0009","无默认收货地址信息"),
	ADDRESS_LIST_FAIL("E0010","无收货地址列表信息"),
	STORE_LIST_FAIL("E0011","无门店列表信息"),
	UPDATE_PASSWORD_FAIL("E0012","原密码错误"),
	RELIEVE_THIRD_LOGIN_FAIL0("E0013","第三方未绑定，不能解绑"),
	RELIEVE_THIRD_LOGIN_FAIL1("E0014","绑定信息有误，不能解绑"),
	PRODUCT_PRICE_FAIL("E0015","商品初始价格有误"),
	ADD_THIRD_LOGIN_FAIL("E0016","第三方已绑定过乐租账号,不能重复绑定"),
	LOGIN_THIRD_LOGIN_FAIL("E0017","该账号与乐租账号未绑定"),
	QUERY_BANK_FAIL("E0018","无银行卡绑定信息"),
	UPDATE_BANK_FAIL("E0019","银行卡信息修改失败"),
	PRODUCT_SPE_FAIL("E0020","规格值无对应有效商品"),
	PRODUCT_ID_LOSE("E0021","产品型号ID和商品ID不能都为空"),
	PRODUCT_GOODS_LOSE("E0022","未查询到商品"),
	CASH_FAIL("E0023","余额不足"),
	ORDER_INFO_FAIL("E0024","订单信息查询失败"),
	RESET_PASSWORD_FAIL("E0029","原密码错误"),
	RAND_FAIL("E0025","验证码输入不对"),
	BANK_CHECK_FAIL("E0026","实名认证失败"),
	TOKEN_CHECK_FAIL("E0027","token认证失败"),
	RAND_CHECK_FAIL("E0028","验证码不匹配"),
	WFENGIN_FAIL("E0029","调用流程服务失败"),
	RECEIVED("E0030","已接单");
	
	private String code;
	private String errorMsg;
	private ReturnB2BEnum(String code, String errorMsg) {
         this.code = code;
         this.errorMsg = errorMsg;
     }
	public String getCode(){
		return this.code;
	}
	public String getErrorMsg(){
		return this.errorMsg;
	}
}
